﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Controls;
using System.Windows;
using System.Windows.Media;

namespace Alma.UX
{
    public class UXPeople:Control
    {
        public UXPeople()
        {
            DefaultStyleKey = typeof(UXPeople);
        }

        #region Image
        public ImageSource Image
        {
            get { return GetValue(ImageProperty) as ImageSource; }
            set { SetValue(ImageProperty, value); }
        }

        public static readonly DependencyProperty ImageProperty = DependencyProperty.Register(
            "Image",
            typeof(ImageSource),
            typeof(UXPeople),
            new PropertyMetadata(null)); 
        #endregion

        #region DisplayName
        public string DisplayName
        {
            get { return GetValue(DisplayNameProperty) as string; }
            set { SetValue(DisplayNameProperty, value); }
        }

        public static readonly DependencyProperty DisplayNameProperty = DependencyProperty.Register(
            "DisplayName",
            typeof(String),
            typeof(UXPeople),
            new PropertyMetadata(string.Empty)); 
        #endregion
    }
}
